package lesson17Inheritance.car;

public class CarDemo {

	public static void main(String[] args) {
		Jeep jeep = new Jeep();
		jeep.model = "Grand Cherokee";
		jeep.startEngine();
		jeep.switch4X4();
		jeep.accelerate(500.0);
		
		SportCar sportCar = new SportCar();
		sportCar.accelerate(500);
		
		Bus bus = new Bus();
		bus.accelerate(500);
		
		System.out.println(jeep.toString());
		System.out.println(sportCar.toString());
	}
	

}
